https://123dok.net/document/q5mn203j-mean-field-theory-enhanced-defect-formation-agcl-agbr.html