Extreme events and the cumulative distribution of net gains in gambling and structured products