Dementia and consciousness: how the brain loses its self