Magnetic properties of electroplated CoPt films