Logical Attractors: a Boolean Approach to the Dynamics of Psychosis