Semiring Activation in Neural Networks