Matrix role in Ge nanoclusters embedded in Si3N4 or SiO2