Nonclassical symmetry reductions for the Kadomtsev-Petviashvili equation