Counterparty credit risk and derivatives pricing