Influence of substituents on the spectroscopic and photochemical properties of naphthalimide derivatives