Local sample thickness determination via scanning transmission electron microscopy defocus series