Thermodynamic multifield modeling and simulation of electromagnetic, thermoelastic, viscoplastic solids