Method of controlling a magnetoresistive device using an electric field pulse