Nanoparticles enable energy conversion and storage