a magnetic fields can be generated by induction