Soft X-ray synchrotron radiation spectroscopy study of rare-earth chalcogenide charge-density wave compounds