Reliability assessment of redundant safety systems with degradation