Second-harmonic generation by Nd 3+ :YAG/Cr 4+ :YAG-laser pulses with changing state of polarization