Effects of a vertical magnetic field on chimney convection in a mushy layer