Glass transition and reaction rates: nonenzymatic browning in glassy and liquid systems