Modulation of Fano resonances by an external magnetic field in semiconductor quantum wells