Manipulation of the resonance interaction in Mach-Zehnder-Fano interferometers