Spectral, electrochemical and photochemical studies and molecular modeling of some azobenzene and stilbene derivatives