Explicit formulas for symmetries and conservation laws of the Kadomtsev-Petviashvili equation