Quality and appropriateness of referrals for dementia patients