Novel Backpropagation Algorithm Considering Energy