A theoretical study of the lowest excited states of azobenzene: the role of torsional coordinate in the cis-trans photoisomerization