The Petrovskiĭ criterion and barriers for degenerate and singular p-parabolic equations