End unit effect on the glass transition temperature of low-molecular-weight polymers and copolymers