Magnitude 7.1 earthquake hits South Pacific