Quantum mechanical bound rotator as a generalized harmonic oscillator