Theory of quasibound states. Comparison with experiment for HeH+ isotopes