Electrochemical cell for in situ x-ray diffraction under ultrapure conditions