Laser‐beam pulse shaping using spectral beam deflection