Generalized Hopf Bifurcation for Planar Vector Fields via the Inverse Integrating Factor