Machine Learning-based Quantification of Brain-Age and Diagnosis of Cognitive Impairment