Spin-dependent electron scattering from quantum dots and antidots in two-dimensional channels