Adaptive quantum measurement for low-dose electron microscopy