A Theory of Multiperiod Debt Structure