Development of State-Space water-level control for an array of cells to be employed as compensator in radiotherapy