Spectral efficiency optimization in flexi-grid long-haul optical systems