What was Frederick II of Prussia first action as king?