The application of chemical effects in high resolution X-ray spectrometry