How did Frederick William of Prussia rule?