Homoclinic bifurcations that give rise to heterodimensional cycles near a saddle-focus equilibrium