Electronic absorption and emission spectra of anions and protonated forms of hydroxybenzaldehydes