Ultrafast all-optical diffraction switching using semiconductor metasurfaces