Parasitic reactions and the balance of materials in lithium batteries for implantable medical devices