A Neural Network Approach for the Differentiation of Numerical Solutions of 3-D Electromagnetic Problems