An application of fuzzy logic to prospect theory