Accounting Standards, Capital Regulation and Credit Supply: A Reduced-form and Structural Analysis