Extremum Seeking for Nash Games in Financial and Energy Markets