Magnitude 5.9 earthquake strikes New Zealand near capital city