The interplay of social contexts and genetic potentials: cognitive and educational development in the early life course