Flexible availability-aware differentiated protection in software-defined elastic optical networks