Electromagnetic coherence theory of laser resonator modes.