Configurational forces and gauge conditions in electromagnetic bodies