During colonial times, Edenton served as the state capital beginning in 1722, and New Bern was selected as the capital in 1766. What city became the capital of North Carolina in 1766?