G(2) gauge theory at finite temperature