Deep learning based regime-switching models of energy commodity prices