Joint resource allocation in optical grids: algorithms and performance study