A current-carrying wire is placed between permanent magnets. Explain why there is a force on the wire.