Magnetoelastic mechanism of spin-reorientation transitions at step-edges.