Optical parametric oscillator with non-ideal mirrors and single- and multi-mode pump beams.