Cognitive impairment in primary ambulatory health care: pharmacotherapy and the use of potentially inappropriate medicine