Bottom-up synthesis of multifunctional nanoporous graphene