Machine-learning software competes with human experts to optimise organic reactions