What events created the Batavian Republic?