Differential functionalisation of the internal and external surfaces of carbon-stabilised nanoporous silicon