Magnetoelastic effects in Jahn–Teller distorted CrF2 and CuF2 studied by neutron powder diffraction