Inferring dependencies between financial assets with applications to multi-name credit derivatives