Positive and negative electrode materials for thin-film batteries