Two-dimensional acoustic field in a nonuniform duct carrying compressible flow