WKB approach to calculating the lifetime of quasistationary states: Harmonic oscillator in polynomial perturbation