Effect of self-phase modulation on the evolution of picosecond pulses in a Nd:glass laser