Lumps and rouge waves for a $$(3+1)$$(3+1)-dimensional variable-coefficient Kadomtsev–Petviashvili equation in fluid mechanics