Latvia's Ernests Gulbis disappointed the home crown by beating favourite Jo-Wilfried Tsonga in the final of the Marseille Open.