Maternal Obesity and Excessive Gestational Weight Gain Are Associated with Components of Child Cognition.