Theoretical analysis of the structures of titanium dioxide crystals.