The spin-lattice interaction for rare earth S-state ions