Effect of signal-to-noise ratio on the automatic clustering of X-ray diffraction patterns from combinatorial libraries