Design and simulation of a dual mode semiconductor laser using sampled grating DFB structure