Relationship between electric and magnetic fields