Measurement of the high-energy all-flavor neutrino-nucleon cross section with IceCube