Best optical filtering for duobinary transmission