Halide substitution in magnesium borohydride