Calorimetric determination of vitrification time and heat capacity of a thermosetting polymer