Electromagnetic effects in the quantum interference of dipoles