Finite-element analysis of second-harmonic generation in AlGaAs waveguides