On the preparation of supported nanoporous carbon membranes