The wage curve: convexity, kinks and composition effects