electromagnetism history