Chemical tools for creating energy-relevant nanomaterials