Study by infrared spectroscopy and thermogravimetric analysis of Tannins and Tannic acid