Fast magnetohydrodynamic oscillation of longitudinally inhomogeneous prominence threads: an analogue with quantum harmonic oscillator