Potentially inappropriate medication and associated factors such as depression and dementia: An analysis of middle-aged and elderly people