Modeling Of Electromagnetic Responses With Respect To Design Variables: Local Gradients, Surrogate Modeling, And Deep Learning Neural Network