Harmonic oscillator model for the atom-wall Casimir-Polder interaction energy