Routing and spectrum assignment in metro optical ring networks with distance-adaptive transceivers