SQUARREL: Scattering Quotient Analysis to Retrieve the Ratio of Elements in X-ray Ptychography