Ultrafiltration membrane synthesis by nanoscale templating of porous carbon