Considering transmission impairments in configuring wavelength routed optical networks