An equation for acoustic propagation in inhomogeneous media with relaxation losses