What union ended the Dutch Republic?