Using survival models for credit risk