Risk analysis in civil engineering