Analysis of defects in additively manufactured lattice structures