Sulfur precursors for nanostructured materials