Powder diffraction analysis of a three-component sample