Determination of the molecular weight by osmometry