Measurement of the proton-antiproton total and elastic cross sections at the CERN SPS collider