Inhomogeneous one-dimensional anharmonic chains