Structure-preserving neural networks for the regularized entropy-based closure of the Boltzmann moment system