On the switching characteristics of Co and CoPtCr thin films