Idiosyncratic risk assessment in the mortgage market