Machine-learning-assisted automation of single-crystal neutron diffraction