Predicting major hazard accidents by monitoring their barrier systems