A systematic study of the effects of thionation in naphthalene dimide derivatives to tune their nonlinear optical properties.