Smart cities will be cleaner, accessible, even more democratic, proponents say. But governments adopting new tech must contend with risks, too