Passively Q-switched self- frequency-doubling