Perturbation Method to Calculate the Interaction Potentials and Electronic Excitation Spectra of Atoms in He Nanodroplets