Active Dielectric Metasurfaces for Switchable Terahertz Beam Steering and Focusing