The theoretical study of passive and active optical devices via planewave based transfer (scattering) matrix method and other approaches