Debt, Equity, the Optimal Financial Structure, and the Cost of Funds