Size and shape control of nanocrystallites in mesoporous TiO2 films