Adsorption and thermal desalination cycles