Exact Solutions to H∞ and H2 Optimizations of Passive Resonant Shunt Circuit for Electromagnetic or Piezoelectric Shunt Damper