Open Resonators and Open Waveguides