The frustrated total reflection filter. 1. Spectral analysis.