The stability of time-split numerical methods for the hydrostatic and the nonhydrostatic elastic equations