On the dynamics of electromagnetic bodies