Runaway electron mitigation by applied magnetic perturbations in RFX-mod tokamak plasmas