An integrated, solar-driven membrane distillation system for water purification and energy generation