Different synaptic connections evoke different firing patterns in neurons subject to an electromagnetic field