The following is an excerpt from the McKinsey Global Institute report, Smart cities: Digital solutions for a…