Novel Traffic Engineering in All-Optical Networks Considering Impairment