How did physical geography influence the population growth of New York City and Philadelphia in the 1600s and 1700s?