Powder diffraction: Least-squares and beyond | Synapse