How Artificial Intelligence Can Help Build Smart Cities