A simple and efficient architecture for trainable activation functions