A simulation tool to optimize the management of modernized infrastructures in collective and on-farm irrigation systems