Quantum wells with localized states at energies above the barrier height: A Fabry–Perot electron filter