An automatic system for X-ray diffraction line profile analysis