On the energetics of homolytic and heterolytic OH bond cleavage in flavonoids