Frequency-doubled Nd:YAG MOPA laser system with programmable rectangular pulses up to 200 microseconds