System dynamics for smarter cities