Frederik IV (1671-1730), king av Denmark och Norway