Nanomaterials for energy conversion and storage