A new (3+1)-dimensional generalized Kadomtsev–Petviashvili equation