Resonant and nonresonant surface-enhanced hyper-Raman spectroscopy with a picosecond laser. Effect of the excitation pulse width