Hope and resilience among patients affected by unipolar and bipolar depression