Ultralight three-dimensional, carbon-based nanocomposites for thermal energy storage