The doping of lead selenide by gadolinium