Analyzing integrated-optical inhomogeneous planar waveguides by Galerkin's method: a detailed comparison of two different basis functions