Fabry-Perot type interferrometer for surface polaritons: Resonance effects