Effect of ground-state twisting on the trans --> cis photoisomerization and TICT state formation of aminostilbenes.