Ultrafast all-optical generation of pure spin and valley currents