Simulation of coherent optical communication systems using TOPSIM: computer model of single-mode semiconductor laser