A model of mortgage losses and its applications for macroprudential instrumentsChristian HottEsauritoAvvisami