The propagation of ion Bernstein waves in heliotron/torsatron magnetic configurations