Measurement of the neutrino-nucleon and antineutrino-nucleon total cross sections