Method of producing electroluminescent mixed lead-halide perovskite materials with high phase stability