Stability of low-frequency modes in tandem mirrors and bumpy tori