Computational image acquisition in electron microscopy