Scanning optical microscopy for porosity quantification of additively manufactured components