Space-variant polarization manipulation for polarimetric measurement by use of subwavelength gratings