Sweden's national security adviser quits over Grindr images