Bifurcation of limit cycles from a heteroclinic loop with two cusps