Integral equation method for acoustic scattering by an inhomogeneous penetrable obstacle in a stratified medium