Evaluation of counterparty risk for derivatives with early exercise features