Dynamic load balancing in WDM networks