An energy-aware dynamic RWA framework for next-generation wavelength-routed networks