Particle swarm optimization and the emission-abosrption method: determination of temperature