Second-harmonic Generation in an Inhomogeneous Laser Plasma