Mass transfer in atmospheric water harvesting systems