Ab initio modeling for the design of TCO’s: structural properties