Heat and mass transfer in membrane distillation