What was the pre-1701 capital of the country that signed the Treaty of Töplitz with Russia and Austria?