Measurement of self-diffusion constant with two-dimensional X-ray photon correlation spectroscopy