Application of neural networks to the solution of electromagnetic inverse scattering problems