Modeling the propagation of elastic waves using a modified finite-difference grid