Spin-dependent diffraction of evanescent waves by subwavelength gratings.