Current-induced self-switching of perpendicular magnetization in CoPt single layer