Considering transmission impairments in RWA algorithms