Spectroscopy of phase transitions for multiagent systems.