Accurate analysis of the abrupt discontinuity in a dielectric waveguide