In-depth RBS study of optical layers based on nanostructured silicon