Study looks at impact of sugar on child's brain function