Gas temperature and excitation classes in planetary nebulae