A collaborative strategy for stable lithium metal anodes by using three-dimensional nitrogen-doped graphene foams.