AutoQNN: An End-to-End Framework for Automatically Quantizing Neural Networks