Determination of glass transition temperature