Numerical analysis of thin-film optical waveguide and directional coupler