Second-harmonic generation of laser radiation in a plasma with a density ripple