Magnetoelastic effects and the magnetic phase diagram of multiferroic DyMn 2 O 5