A precise determination of the W and Z masses at the CERN p-antip collider