The rise of probability, detection and the ‘Unity of Design’ between the eighteenth and nineteenth centuries