Engagement and dropping out of school : a life-course perspective