Optimizing the signal-to-noise ratio for X-ray photon correlation spectroscopy.