Reducing the Environmental Impact of Food Production in Urban Agriculture by Optimizing Irrigation