Effects of solvent polarity and hydrogen bonding on coumarin 500