Use of a templating or imprinting material ; filling pores of a substrate or matrix followed by the removal of the substrate or matrix