Cognition and late-life suicide: cognitive profiles among depressed suicidal subgroups as a function of medical seriousness and onset of suicidal behavior