A realization of the q-deformed harmonic oscillator: rogers-Szegö and Stieltjes-Wigert polynomials