Sol–gel reactions of titanium alkoxides and water: influence of pH and alkoxy group on cluster formation and properties of the resulting products