Influence of nanocrystalline structure and composition on hardness of thin films based on TiO2