Morphological and magnetic properties of carbon–nickel nanocomposite thin films