Interest rate models for estimating counterparty credit risk