Thermogravimetric and calorimetric studies of water absorbed in polyaniline