Wavelet tools for improving the accuracy of neural network solution of electromagnetic inverse problems