Determination of the osmotic resistance of red blood cells