A model of mortgage losses and its applications for macroprudential instrumentsChristian HottAgotadoNotifícame