Log-domain circuit models of chemical reactions