Economic Success and the Evolution of Schooling and Mental Ability