Microstructure and magnetic properties of Co–C nanogranular films