Thermodynamics of SU(3) lattice gauge theory in (2 + 1) dimensions