Determination of kinetic parameters from TG curves by non-linear optimization