A Functional Central Limit Theorem for Semimartingales