The molecular weight dependence of lower and upper critical solution temperatures