Because the duchy was outside of the core Holy Roman Empire, the prince-electors of Brandenburg were able to proclaim themselves King of Prussia beginning in 1701. How was the Holy Roman Empire connected to Brandenburg?