Assessing carbon footprints of cities