High-order harmonic generation from Rydberg atoms in inhomogeneous fields.