Multistage programming techniques for optimization management of extended water resources systems