Effects of interatomic interaction range on the charge-density-wave and spin–Peierls instabilities