Theory of surface second-harmonic generation in silica nanowires