Library that models and simulates micro-optical waveguides