Computer simulation study of lattice spin models in one dimension with long-range inhomogeneous interactions possessing O(2) symmetry