Closing the loop: Autonomous experiments enabled by machine-learning-based online data analysis in synchrotron beamline environments