In situ x-ray absorption studies of electrochemically induced phase changes in lithium-doped InSb