Polymer nanocomposites for lithium battery applications