Patterns of treatment resistance in bipolar affective disorder