Cognitive and autonomous QoT-driven optical line controller