N=2 vacua in generalized geometry