Chaotic motion of neutral and charged particles in a magnetized Ernst-Schwarzschild spacetime