Finding the g-factor in brain structure using the method of correlated vectors