A new approach of solving Green's function for wave propagation in an inhomogeneous absorbing medium