New method to measure the K-shell absorption jump factor in some rare-earth elements