Halogen etching of Si via atomic-scale processes