Noncoplanar magnetic fields, shock potentials, and ion deflection