Risk modelling in civil and financial engineering