Optimal energy decay rates for some wave equations with double damping terms