Electric-field-induced on/off switching of the Faraday effect