A machine learning approach for online automated optimization of super-resolution optical microscopy.