Rietveld texture analysis from diffraction images