Modelling and structure-tailored control of biogas plants fed on agro-food residues