Effect of the in-plane magnetic field on the neutron spin resonance in optimally doped FeSe 0.4 Te 0.6 and BaFe 1.9 Ni 0.1 As 2 superconductors