Brain activity and cognition : a connection from thermodynamics and information theory