On the enhancement of M1-transitions from neutron resonances in the Ba and Ce isotopes