Actively controllable terahertz switches with graphene-based nongroove gratings