This mini-review is dedicated to the 85th birthday of Prof. L. V. Keldysh, from whom we have learned so much. In this paper we study the potential and electron density depth profiles in surface accumulation layers in crystals with a large and nonlinear dielectric response such as SrTiO3 (STO) in the cases of planar, spherical and cylindrical geometries. The electron gas can be created by applying an induction D0 to the STO surface. We describe the lattice dielectric response of STO using the Landau-Ginzburg free energy expansion and employ the Thomas-Fermi (TF) approximation for the electron gas. For the planar geometry we arrive at the electron density profile n(. We extend our results to overlapping electron gases in GTO/STO/GTO heterojunctions and electron gases created by spill-out from NSTO (heavily n-type doped STO) layers into STO. Generalization of our approach to a spherical donor cluster creating a big TF atom with electrons in STO brings us to the problem of supercharged nuclei. It is known that for an atom with nuclear charge Ze, where Z > 170, electrons collapse onto the nucleus resulting in a net charge Zn < Z. Here, instead of relativistic physics, the collapse is caused by the nonlinear dielectric response. Electrons collapse into the charged spherical donor cluster with radius R when its total charge number Z exceeds the critical value Zc R/a, where a is the lattice constant. The net charge eZn grows with Z until Z exceeds Z * (R/a) 9/7 . After this point, the charge number of the compact core Zn remains Z * , with the rest Z * electrons forming a sparse Thomas-Fermi atom with it. We extend our studies of collapse to the case of long cylindrical clusters as well.