Integrated food–energy systems for climate-smart agriculture