Norwegian chess grandmaster quits tournament in dispute over jeans