The impact of tooth loss on cognitive function