Magnetic resonance in the differential diagnosis of dementia