Optimization of RFX-mod2 gap configuration by estimating the magnetic error fields due to the passive structure currents