Innovation in Cities: Science-Based Diversity, Specialization and Localized Competition