Condensation in membrane-based energy exchangers