Algorithmic formulation and numerical implementation of coupled electromagnetic-inelastic continuum models for electromagnetic metal forming