Gender segregation by field in higher education