Model-Based Electron Microscopy