Learning-Based Autofocus for Scanning Electron Microscopy