Library for processing scanning transmission electron microscopy data acquired using a pixelated detector