Markers of dementia-related health in primary care electronic health records