Credit risk and the business cycle : doctoral dissertation