Ordered mesoporous silicon through magnesium reduction of polymer templated silica thin films.