how to calculate miller indices (hkl) values in x-ray diffraction pattern