Effects of physical and social environments on the risk of dementia among Taiwanese older adults: a population-based case-control study