Achromatic arbitrary polarization control in the terahertz band by tunable phase compensation