Machine Learning Surrogate Models for Electromagnetic Simulation