Intracavity deformable mirror for beam quality improvement and power enhancement of a passively Q-switched laser.