Nanomaterials for renewable energy production and storage