Synthesis and characterization of nanostructured, mixed-valent compounds for electrochemical energy storage devices