The Electromagnetic shift of energy levels