Optimized diode-pumped passive Q-switched ytterbium–erbium glass laser