In situ thermo acoustic non-destructive testing during three-dimensional printing