General dynamic term structures under default risk