Optimized crushing and pulverizing protocols improve sample homogeneity, reproducibility, and accuracy in XRF.