Modeling of nanostructured cathodes for improved lithium-sulfur batteries