Automatic detection of age- and sex-related differences in human brain morphology