Terahertz polarimetry with a monolithic metasurface