Generalized Ternary Connect: End-to-End Learning and Compression of Multiplication-Free Deep Neural Networks