Thermally and light‐induced instabilities in phosphorus‐doped hydrogenated amorphous silicon