A model of mortgage losses and its applications for macroprudential instruments Discussion paper 34/2013: Christian Hott