The energy density and pressure in SU(3) lattice gauge theory at finite temperature