Dynamics of the collisional electron transfer and femtosecond photodissociation of NaI on ab initio electronic energy curves