Rietveld texture analysis from synchrotron diffraction images. I. Calibration and basic analysis