Time-stepping stability of continuous and discontinuous finite-element methods for 3-D wave propagation