Topotactic lithium reactions with ReO3 related shear structures