Effects of resilience on quality of life in patients with bipolar disorder.