Surface Characterization and Defect Detection by Analysis of Images Obtained with Coherent Light