Zaslat SMS: Diffraction theory of open resonators /