An Equity-Based Credit Risk Model