Electromagnetic fields in low-energy heavy-ion collisions with baryon stopping