A research team has developed a quantitative framework to help cities attract startups while maintaining quality of life.