Perpendicular switching of a single ferromagnetic layer induced by in-plane current injection