Finite element analysis of the magnetomechanical behavior of a toroidal coil with magnetic mirrors