Efficient detection for cooperative communication with two alternating relays