Structure and properties of CaTiO3