Nanostructured thermal batteries with high power density