Middle infrared (ATR FT-MIR) characterization of industrial tannin extracts