Implementation of a symmetric boundary integral formulation for cohesive cracks in homogeneous media and at interfaces