Structure Preserving Neural Networks: A Case Study in the Entropy Closure of the Boltzmann Equation