Equalizing nonlinearities with memory effects: Volterra series vs. deep neural networks