Nanostructured silicon as a photonic material