Structural relaxation and magnetic anisotropy: Co wire at the Pt(111) step edge