Perpendicular magnetic anisotropy in CoxPt1 − x alloy films