Integrated modelling of material flows and energy systems (MIMES)