Heteroclinic loops leading to hyperchaos