Mathematical models for energy and landscape integrated analysis in agroecosystems