An electron spin polarization detector: Spin-dependent absorption of a polarized electron beam