Logical activation functions for training arbitrary probabilistic Boolean operations | Synapse