Nanostructured metal–carbon membrane catalysts based on carbonized PAN