Fast pixelated detectors in scanning transmission electron microscopy. Part I: data acquisition, live processing and storage