Gender differences in Italian STEM degree courses: a discrete-time competing-risks model