An effective neural network approach to reproduce magnetic hysteresis in electrical steel under arbitrary excitation waveforms