Spectrum fragmentation metrics and their use in optical channel allocation algorithms