State-dependent Modeling of Default Rates