Computer simulation study of one-dimensional lattice spin models with long-range inhomogeneous interactions