Modulated ion acoustic waves in inhomogeneous plasmas