Generalized modelling for the design of guided-wave optical directional couplers