The effect of the resonant mode structure on flux tunneling in SQUIDs