In situ X-ray diffraction experiments on lithium intercalation compounds