Thermodynamically stable amorphous intergranular films in nanocrystalline silicon