New Zeland, second half of the 19th century