Cleaning or rinsing ion-exchange beds