In situ observation of reversible nanomagnetic switching induced by electric fields.