5.9 magnitude earthquake hits new zealand