Extracting water from mud