Assessment of thin film batteries based on polymer electrolytes. I. Energy density