Stability of limit cycles and bifurcations of generalized van der Pol oscillators