Effects of ion bounce resonances on ballooning-interchange modes