Dimerization of titanyl phthalocyanine in thin films prepared by surface polymerization by ion-assisted deposition