Design of a high quality optical resonator