Catalytic effects of Ni nanoparticles encapsulated in few-layer N-doped graphene and supported by N-doped graphitic carbon in Li–S batteries