Calorimetric determination of purity by simulation of dsc curves