Scientists find link between diet and brain size