Nonlinear interaction of longitudinal waves in an inhomogeneously predeformed elastic medium