Semisacrificial-templated direct conversion of metal foams: synthesis methods and applications