Structural and magnetic properties of nanogranular Co–Pt/C films