Propagation of one-dimensional waves through a nonlinear aftereffect medium