Generalized backpropagation algorithm for training a data predistorter with memory in radio systems