Optical metrology for digital manufacturing: a review