Switching of the polarization of cw YAG:Nd3+ laser radiation