Structural substituent effect in the excitation energy of a chromophore: quantitative determination and application to S-nitrosothiols