Determination of the particle sizes, microstrains, and degree of inhomogeneity in nanostructured materials from X-ray diffraction data