Utility valuation of credit derivatives: Single and two-name cases