A straight wire lies between two magnet poles. The wire moves when a current is switched on. Explain why this happens.