Theory of Finite Fermi Systems and Application to Atomic Nuclei