A Neural Network-Based Automatized Management of N ×N Integrated Optical Switches