Banks’ exposure to interest rate risk, their earnings from term transformation, and the dynamics of the term structure