Zaslat SMS: Modeling of photonic devices