From HazOp study to automatic construction of cause consequence diagrams for frequency calculation of hazardous plant states