Quantum Electrodynamics of Atomic Resonances