Optimizing the riparian zone width near a river for controlling lateral migration of irrigation water and solutes