Competency, General principles and applicability in dementia