The polymer battery as an environment for in situ X-ray diffraction studies of solid-state electrochemical processes