7.1-magnitude quake hits northern Philippines