Exact treatment of the vibrational isotope effect in the harmonic approximation: Out-of-plane vibrations of planar molecules