A New Class of Soliton Solutions for the (Modified) Kadomtsev‐Petviashvili Equation