Classical molecular-dynamics simulations of laser-irradiated clusters: Nonlinear electron dynamics and resonance-enhanced low-order harmonic generation