Dynamical Model of harmonic generation in centrosymmetric semiconductors at visible and UV wavelengths