Occupational segregation and the gender wage gap