Laser-diode dual-end-pumped electro-optic Q-switched slab Tm:YAP laser