A transmitting boundary for the numerical simulation of elastic wave propagation