Taiwan hit by 6.4-magnitude quake