LUT-NN: Empower Efficient Neural Network Inference with Centroid Learning and Table Lookup