Downhole depth estimation for automated subsurface navigation