Magnetic resonance spectroscopy detects brain injury and predicts cognitive functioning in children with brain injuries.