Second-harmonic generation enabled by longitudinal electric-field components in photonic wire waveguides