Absolute quantification by powder X-ray diffraction of complex mixtures of crystalline and amorphous phases for applications in the Earth sciences