A layer-by-layer quality monitoring framework for 3D printing. (July 2021)