Niches, labour market segregation and gender