Emotional Valence and the Free-Energy Principle