Equity and Debt Valuation with default Risk: a Discrete Structural Model