3D electromagnetic analysis of the MHD control system in RFX-mod upgrade