Thermo-Optic Dielectric Metasurfaces for Polarization State Synthesizers and Active Lensing