Introduction to counterparty risk (QRM Chapter 17)