A Bayesian optimal convolutional neural network approach for classification of coal and gangue with multispectral imaging