Excitation of atoms by high-energy photons