Text this: Detection for physical-layer network coding in two-way relay channels