A dynamic approach merging network theory and credit risk techniques to assess systemic risk in financial networks