Molecular theory for the rheology of glasses and polymers.