Solid solutions of metal halides under a reactive atmosphere