Role of titanium and silicon dioxide in amorphous silicon nanowire growth by solid state reaction