Acoustoelastic Effects in Elastic Media with Nonuniform Initial Stress