Formation chemistry of perovskites with mixed iodide/chloride content and the implications on charge transport properties