Child maltreatment and cognitive and academic functioning in two generations.