Dynamical Invariants and Quantization of the One-Dimensional Time-Dependent, Damped, and Driven Harmonic Oscillator