Endogenous debt maturity and rollover risk