Job satisfaction, wages and allocation of men and women