Flavonols as metal-ion chelators : Complex formation with Mg2+ and Ba2+ cations in the excited state