In situ, high-energy x-ray diffravtion studies of electrode materials for Li-ion batteries