Sulfur encapsulated in porous carbon nanospheres and coated with conductive polyaniline as cathode of lithium–sulfur battery