How did Philadelphia's role as a center of commerce, culture, and intellectual thought during the colonial era contribute to its emergence as a leading city in the American Revolution?