Water is diverted from rivers for what purpose