Managing and Planning Water Resources for Irrigation: Smart-Irrigation Systems for Providing Sustainable Agriculture and Maintaining Ecosystem Services