Non-invasive brain stimulation for improving cognitive function in people with dementia and mild cognitive impairment