compute time step size based on wave speed, order, and element size