MENTOS: A statistical thermodynamic approach for modeling metabolism