Structural aspects of lithium insertion in oxides: LixReO3 and Li2FeV3O8