Diagnosis and treatment of bipolar disorder