Optimization of Multilayer Photonic Structures using Artificial Neural Networks to Obtain a Target Optical Response