Optimal Dispersive Estimates for the Wave Equation with Potentials in Dimensions 4 ≤ n ≤ 7