A new Technique for the determination of modal characteristics of optical waveguides