Photonic spin filter with dielectric metasurfaces.