Electronic structure investigations of titanium oxide nanoclusters, boron-nitrogen heterocycles, and reaction products of lanthanides with oxygen difluoride and lanthanides with water