Deep learning in optical metrology: a review