Graphene-sandwich metasurface as a frequency shifter, switch, and isolator at terahertz frequencies