Modeling the effects of health status and the educational infrastructure on the cognitive development of Tanzanian schoolchildren