Measuring the gender pay gap