Chain-length dependence of the glass transition temperature