Measurement of the proton-antiproton elastic and total cross section at a centre-of-mass energy of 540 GeV