A novel device for detecting the polarization direction of linear polarized light using integrated subwavelength gratings and photodetectors