A compositional method for reliability analysis of workflows affected by multiple failure modes