Magnetohydrodynamic flow in channels of variable cross-section with strong transverse magnetic fields