Identifying the bridge between depression and mania: a machine learning and network approach to bipolar disorder