Diode-pumped Q-switched green laser formed with a flat–flat resonator