Ion mixing of markers in SiO2 and Si