Stability and performance of the SIPG and IIPG finite-element methods for wave propagation