A valley-filtering switch based on strained graphene