The using of differential scanning calorimetry and thermogravimetric analysis for optimization of plastics processing