The role of debt and equity finance over the business cycle