Characterization of chemical, molecular, thermal and rheological properties of medlar pectin extracted at optimum conditions as determined by Box-Behnken and ANFIS models.