Nonexistence Results for the Korteweg–de Vries and Kadomtsev–Petviashvili Equations