The perfect amount of sleep to keep middle-aged brains healthy, revealed