Quantum contextuality in a one-dimensional quantum harmonic oscillator