Simulation of optical communication systems using MATLAB