Longitudinal analysis of brain atrophy in Alzheimer’s disease and frontotemporal dementia