Improvement of energy spectrum characteristics of CdZnTe semiconductor detector by means of digital waveform processing with neural network algorithm