Analysis of X-ray diffraction data recorded from linear and point detector _ for lab instruments and Synchrotron SPEC format