Earnings functions and the measurement of the determinants of wage dispersion: extending the Blinder–Oaxaca approach