The synthesis, electronic structure, and defect chemistry of halide double perovskites