Long-range interatomic forces from spectroscopic data