Configuration of an SDH self-healing ring: problem formulation and algorithm