Integrated conversion of municipal solid waste residues into fuels and energy