Carbon nanofibers encapsulated in macropores in silicon