Quantum Harmonic Oscillator and Nonstationary Casimir Effect