X-ray diffraction analysis of mesostructured materials by continuous density function technique