Simulation methods for multiperiodic and aperiodic nanostructured dielectric waveguides