Quantum Electronics in Lasers and Masers