Generalized Additive Models for Nonmarket Valuation via Revealed or Stated Preference Methods