Layer-by-layer Assembly of Nanocomposites for Energy Applications.