Effect of Link Margin and Frequency Granularity on the Performance of a Flexgrid Optical Network