Electromagnetism and the Structure of Matter