Mechanics of Electromagnetic Solids