Switching mechanisms in layered CoCrPt thin films