Pupil dynamics preceding switches in task engagement