Inverse thermal analysis method to study solidification in cast iron