Quantum filter of spin polarized states: Metal–dielectric–ferromagnetic/semiconductor device