Rigorous analysis of dielectric rod waveguides with flat cross section