Influence of torsional barriers on the glass transition temperature of linear polymers