Functionality-switchable terahertz polarization converter based on a graphene-integrated planar metamaterial