Traffic grooming and spectrum assignment for coherent transceivers in metro-flexible networks