Nitrogen and phosphorus codoped hierarchically porous carbon as an efficient sulfur host for Li-S batteries