Influence of magnesium ion on the ultraviolet absorption of aqueous solutions of salicylic acid and related compounds