Multipole P-wave logging in formations altered by drilling