An Optimization-Based Supervised Learning Algorithm for PXRD Phase Fraction Estimation