Neural network-based distributed parameter modeling of permanent magnet synchronous machines considering spatial harmonics and iron losses | Synapse