Thermodynamics of Surface Nanobubbles.