Bifurcations of systems with structurally unstable homoclinic orbits and moduli of ω-equivalence