Magnetic properties of cobalt layers and Co/Pt multilayers