7.1-magnitude quake hits Pacific island