One size fits all? The effects of teachers' cognitive and social abilities on student achievement