A cross-country analysis of gender pay gap and segregation