Determination of critical pressure in membrane distillation process