The effect of a Pt impurity layer on the magnetocrystalline anisotropy of hexagonal close-packed Co: a first-principles study