Rotating-mirror Q-switched Er:YAG laser for optodynamic studies