Discontinuous shear modulus determines the glass transition temperature