Microstructural evolution and magnetization reversal mechanism of CoPt films with perpendicular magnetic anisotropy