Mixed finite elements for the simulation of fields and forces in electromagnetic devices