7.1 magnitude earthquake hits New Zealand islands