Longitudinal analysis of dementia diagnosis and specialty care among racially diverse Medicare beneficiaries