Analysis of the reproducible generation of ultrashort pulses in an YAG:Nd3+ laser