Integrated assessment of agricultural ecosystems using simulation-optimization and machine learning