Hydrophilic polymer foam and microsphere templates for fabrication of microcellular nickel and graphene foams with energy storage applications