Equalization and linearization of nonlinear systems