Critical Nature of Emotions in Artificial General Intelligence