Which U.S. territory became the first state west of the Rocky Mountains due to its rapid increase in population during the mid-1800s?