Design of a maximum-likelihood detector for cooperative communications in intersymbol interference channels