Using a Neural Network to Improve the Optical Absorption in Halide Perovskite Layers Containing Core-Shells Silver Nanoparticles