Harmonic generation in ring-shaped molecules