6.4-magnitude quake rattles northern Philippines, Chinese provinces