Magnetic properties of CoPt thin films obtained by electrodeposition from hexachloroplatinate solution. Composition, thickness and substrate dependence