Theory and computation of electromagnetic fields and thermomechanical structure interaction for systems undergoing large deformations