Macrofinancial Risk Framework Linked to Macroeconomic Models