Structural and electronic properties of lithium intercalated graphite