A 68-year-old man with osteoarthritis of the right knee complains of persistent pain despite regular paracetamol and topical NSAIDs. He has a history of a previous peptic ulcer. What is the most appropriate next step in his pain management according to NICE guidelines?