How gender composition and group formation impact the effectiveness of group work in two-stage collaborative exams