Error analysis for the operator marching method applied to range dependent waveguides