Employment, peers, and life-course transitions