Ratio of slopes method for quantitative X-ray diffraction analysis