SMS dit: Finite element modeling methods for photonics /