Network theory for quantifying interconnected risks