Electrically switchable metadevices via graphene