Polarized photodetectors based on main group layered low-dimensional semiconductors