Magnetic control of electric-field domains in semiconductor superlattices