The r-wise Hamming distance and its operational interpretation for block codes