A convolutional neural network-based diagnostic method using resting-state electroencephalograph signals for major depressive and bipolar disorders