A stabilized finite element method for global analysis of convective instabilities in nonparallel flows