Optimal symbol error rate encoding