An Optimized Generator of Finite Element Meshes based on a Neural Network