Rare-earth glass reference materials for near-infrared spectrometry: correcting and exploiting temperature dependencies.