Spectral transform and orthogonality relations for the Kadomtsev-Petviashvili I equation