Finite-difference modeling of borehole resonances