Dynamic Investment, Capital Structure, and Debt Overhang