Production of desalinated water