Education, cognitive skills and earnings in comparative perspective