Restructuring cities for sustainability: a metabolism approach