Long space missions take a toll on astronaut brains, study finds