Effect of the nitrogen heteroatom on the photophysics and photochemistry of trans-1-styrylnaphthalene and trans-9-styrylphenanthrene in different solvents