Investigations towards an accurate, efficient and automated finite element program for the numerical analysis of optical waveguides