Substitution and chemical environment effects on the absorption spectrum of indigo.